package com.ssm.dboss;

import java.io.Serializable;
import java.math.BigDecimal;

public class UserInstrumentProfitDTO implements Serializable {
    private String userId;
    private String productId;
    private String instrumentId;
    private BigDecimal profit;
    private BigDecimal profitRate;
    private BigDecimal volume;
    private Integer direction;
    private Integer leverage;
    private Integer positionMode;
    private Integer modeType;

    public UserInstrumentProfitDTO() {
    }

    public String getUserId() {
        return this.userId;
    }

    public String getProductId() {
        return this.productId;
    }

    public String getInstrumentId() {
        return this.instrumentId;
    }

    public BigDecimal getProfit() {
        return this.profit;
    }

    public BigDecimal getProfitRate() {
        return this.profitRate;
    }

    public BigDecimal getVolume() {
        return this.volume;
    }

    public Integer getDirection() {
        return this.direction;
    }

    public Integer getLeverage() {
        return this.leverage;
    }

    public Integer getPositionMode() {
        return this.positionMode;
    }

    public Integer getModeType() {
        return this.modeType;
    }

    public void setUserId(final String userId) {
        this.userId = userId;
    }

    public void setProductId(final String productId) {
        this.productId = productId;
    }

    public void setInstrumentId(final String instrumentId) {
        this.instrumentId = instrumentId;
    }

    public void setProfit(final BigDecimal profit) {
        this.profit = profit;
    }

    public void setProfitRate(final BigDecimal profitRate) {
        this.profitRate = profitRate;
    }

    public void setVolume(final BigDecimal volume) {
        this.volume = volume;
    }

    public void setDirection(final Integer direction) {
        this.direction = direction;
    }

    public void setLeverage(final Integer leverage) {
        this.leverage = leverage;
    }

    public void setPositionMode(final Integer positionMode) {
        this.positionMode = positionMode;
    }

    public void setModeType(final Integer modeType) {
        this.modeType = modeType;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof UserInstrumentProfitDTO)) {
            return false;
        } else {
            UserInstrumentProfitDTO other = (UserInstrumentProfitDTO)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$userId = this.getUserId();
                Object other$userId = other.getUserId();
                if (this$userId == null) {
                    if (other$userId != null) {
                        return false;
                    }
                } else if (!this$userId.equals(other$userId)) {
                    return false;
                }

                Object this$productId = this.getProductId();
                Object other$productId = other.getProductId();
                if (this$productId == null) {
                    if (other$productId != null) {
                        return false;
                    }
                } else if (!this$productId.equals(other$productId)) {
                    return false;
                }

                Object this$instrumentId = this.getInstrumentId();
                Object other$instrumentId = other.getInstrumentId();
                if (this$instrumentId == null) {
                    if (other$instrumentId != null) {
                        return false;
                    }
                } else if (!this$instrumentId.equals(other$instrumentId)) {
                    return false;
                }

                label110: {
                    Object this$profit = this.getProfit();
                    Object other$profit = other.getProfit();
                    if (this$profit == null) {
                        if (other$profit == null) {
                            break label110;
                        }
                    } else if (this$profit.equals(other$profit)) {
                        break label110;
                    }

                    return false;
                }

                label103: {
                    Object this$profitRate = this.getProfitRate();
                    Object other$profitRate = other.getProfitRate();
                    if (this$profitRate == null) {
                        if (other$profitRate == null) {
                            break label103;
                        }
                    } else if (this$profitRate.equals(other$profitRate)) {
                        break label103;
                    }

                    return false;
                }

                Object this$volume = this.getVolume();
                Object other$volume = other.getVolume();
                if (this$volume == null) {
                    if (other$volume != null) {
                        return false;
                    }
                } else if (!this$volume.equals(other$volume)) {
                    return false;
                }

                label89: {
                    Object this$direction = this.getDirection();
                    Object other$direction = other.getDirection();
                    if (this$direction == null) {
                        if (other$direction == null) {
                            break label89;
                        }
                    } else if (this$direction.equals(other$direction)) {
                        break label89;
                    }

                    return false;
                }

                label82: {
                    Object this$leverage = this.getLeverage();
                    Object other$leverage = other.getLeverage();
                    if (this$leverage == null) {
                        if (other$leverage == null) {
                            break label82;
                        }
                    } else if (this$leverage.equals(other$leverage)) {
                        break label82;
                    }

                    return false;
                }

                Object this$positionMode = this.getPositionMode();
                Object other$positionMode = other.getPositionMode();
                if (this$positionMode == null) {
                    if (other$positionMode != null) {
                        return false;
                    }
                } else if (!this$positionMode.equals(other$positionMode)) {
                    return false;
                }

                Object this$modeType = this.getModeType();
                Object other$modeType = other.getModeType();
                if (this$modeType == null) {
                    if (other$modeType != null) {
                        return false;
                    }
                } else if (!this$modeType.equals(other$modeType)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof UserInstrumentProfitDTO;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $userId = this.getUserId();
        result = result * 59 + ($userId == null ? 43 : $userId.hashCode());
        Object $productId = this.getProductId();
        result = result * 59 + ($productId == null ? 43 : $productId.hashCode());
        Object $instrumentId = this.getInstrumentId();
        result = result * 59 + ($instrumentId == null ? 43 : $instrumentId.hashCode());
        Object $profit = this.getProfit();
        result = result * 59 + ($profit == null ? 43 : $profit.hashCode());
        Object $profitRate = this.getProfitRate();
        result = result * 59 + ($profitRate == null ? 43 : $profitRate.hashCode());
        Object $volume = this.getVolume();
        result = result * 59 + ($volume == null ? 43 : $volume.hashCode());
        Object $direction = this.getDirection();
        result = result * 59 + ($direction == null ? 43 : $direction.hashCode());
        Object $leverage = this.getLeverage();
        result = result * 59 + ($leverage == null ? 43 : $leverage.hashCode());
        Object $positionMode = this.getPositionMode();
        result = result * 59 + ($positionMode == null ? 43 : $positionMode.hashCode());
        Object $modeType = this.getModeType();
        result = result * 59 + ($modeType == null ? 43 : $modeType.hashCode());
        return result;
    }

    public String toString() {
        return "UserInstrumentProfitDTO(userId=" + this.getUserId() + ", productId=" + this.getProductId() + ", instrumentId=" + this.getInstrumentId() + ", profit=" + this.getProfit() + ", profitRate=" + this.getProfitRate() + ", volume=" + this.getVolume() + ", direction=" + this.getDirection() + ", leverage=" + this.getLeverage() + ", positionMode=" + this.getPositionMode() + ", modeType=" + this.getModeType() + ")";
    }
}
